<script type="text/javascript" src="<?=AUTH_DOMAIN_URL?>/index-t.html?t=<?=time();?>"></script>
<div id="links">
  <div class="w2">
  <? if(count($this->languages)>1){?>
    <?=$this->t('top_select_lang');?>：<? 
	$s = '';
	if(is_array($this->languages))foreach($this->languages as $lang){ 
	echo " $s ";
	if($this->lang == $lang){
		echo $this->t('language_'.$lang);
	}else{			
		echo '<a href="'.$this->urls($this->currentControler,null,array('lan'=>$lang)).'">'.$this->t('language_'.$lang).'</a>';
	}
	$s = '|';}
	}
	?>
    
  </div>
  <div class="w2 la">
  <a href="<?=$this->url(array('module'=>'default','controller'=>'index','action'=>'index'),'default',true); ?>">
      <?=$this->t('lan_nav_home');?>
      </a> | 
      <? if($this->authInfo->memb_uid){?>      
      <? if($this->authInfo->memb_type == 'sns') { ?>
      <a href="<?=$this->url(array('module'=>'sns','controller'=>'index','action'=>'index','uid'=>$this->authInfo->memb_uid),'default',true); ?>"> »
      <?=$this->authInfo->memb_name?>
      </a> | 
      <a href="<?=$this->url(array('module'=>'sns','controller'=>'index','action'=>'index','uid'=>$this->authInfo->memb_uid),'default',true); ?>"><?=$this->t('top_space_man');?></a>
      <? }else{ ?>
      <a href="<?=$this->urls('index','index'); ?>"> »
      <?=$this->authInfo->memb_name?>
      </a> | 
      <a href="<?=$this->url(array('module'=>'comadmin','controller'=>'index','action'=>'index'),'default',true); ?>"><?=$this->t('top_space_man');?></a> | <a href="<?=$this->urls('module','edit'); ?>"><?=$this->t('top_space_set');?></a>
      <? } ?>
      | <a href="<?=AUTH_DOMAIN_URL;?><?=$this->authInfo->memb_type == 'sns'?'/sns/leavemsg/inbox/uid/'.$this->authInfo->memb_uid:'/comadmin/msgcenter';?>" target="_blank"><?=$this->t('top_pm');?>(<?=$this->totalpms ;?>)</a> | 
      <a href="<?=$this->url(array('module'=>'default','controller'=>'auth','action'=>'logout'),'default',true); ?>"> »<?=$this->t('top_exit');?></a>
      <? }else{?>
      <a href="<?=$this->url(array('module'=>'default','controller'=>'auth','action'=>'register'),'default',true); ?>"> »<?=$this->t('top_reg');?></a> | 
      <a href="<?=$this->url(array('module'=>'default','controller'=>'auth','action'=>'login'),'default',true); ?>"> »<?=$this->t('top_login');?></a>
      <? } ?>
  </div>
  <div class="clear"></div>  
</div>